package com.xueyi.system.codeRecord.service.impl;

import com.xueyi.system.codeRecord.domain.query.CodeRecordQuery;
import com.xueyi.system.codeRecord.domain.dto.CodeRecordDto;
import com.xueyi.system.codeRecord.service.ICodeRecordService;
import com.xueyi.system.codeRecord.manager.ICodeRecordManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 生成溯源码管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class CodeRecordServiceImpl extends BaseServiceImpl<CodeRecordQuery, CodeRecordDto, ICodeRecordManager> implements ICodeRecordService {

    /**
     * 查询生成溯源码对象列表 | 数据权限 | 附加数据
     *
     * @param codeRecord 生成溯源码对象
     * @return 生成溯源码对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"CodeRecordMapper"})
    public List<CodeRecordDto> selectListScope(CodeRecordQuery codeRecord) {
        return baseManager.selectListExtra(codeRecord);
    }

}